package god;

import god.interfaces.J24ProfessorService;
import god.services.J24ProfessorServiceImpl;

import java.util.Scanner;

public class J24Professor {

	public static void main(String[] args) {
		J24ProfessorService ps = new J24ProfessorServiceImpl();
		
		System.out.println("선택");
		Scanner sc = new Scanner(System.in);
		
		switch (sc.nextInt()) {
			case 1 : ps.newProfessor(); break;
			case 2 : ps.readProfessor(); break;
			case 3 : ps.readOneProfessor(); break;
			case 4 : ps.modifyProfessor(); break;
			case 5 : ps.removeProfessor(); break;
			case 0 : sc.close(); System.exit(0); break;
			default : System.out.println("잘못 선택하셨습니다.");
		}
	}

}
